package com.bizdk.fastfx;

import javafx.application.Application;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;

@Slf4j
@MapperScan("com.bizdk.fastfx.domain.mapper")
@SpringBootApplication(scanBasePackages = {"com.bizdk"})
public class App implements CommandLineRunner {
    public static void main(String[] args) {
        new SpringApplicationBuilder().sources(App.class).web(WebApplicationType.NONE).headless(false).run();
        log.info("(♥◠‿◠)ﾉﾞ  应用启动成功   ლ(´ `ლ)ﾞ  ");
    }

    @Override
    public void run(String... args) throws Exception {
        Application.launch(JavafxLauncher.class, args);
    }
}
